package com.cskaoyan.bean.wx_home_index;

import com.cskaoyan.bean.promotion.coupon.Coupon;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 17:01
 * @Version:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InnerCoupon {

    private Integer id;
    private String name;
    private String desc;
    private String tag;
    private Double discount;
    private Double min;
    private Integer days;


    public InnerCoupon(Coupon coupon) {
        this.id = coupon.getId();
        this.name = coupon.getName();
        this.desc = coupon.getDesc();
        this.tag = coupon.getTag();
        this.discount = coupon.getDiscount();
        this.min = coupon.getMin();
        this.days = coupon.getDays().intValue();
    }
}
